<div class="clearboth"></div>
<div class="fullround" >
    <div class="top-l">&nbsp;</div><div class="top-c">&nbsp;</div><div class="top-r">&nbsp;</div>
    <div class="fullround-content">
		<div class="common-wrapper">
			<?php if($action == 'bycat'):?>
				<h2><?php echo$catdata['title'];?></h2>
				<?php echo$catdata['description'];?>
				<div class="app-gallery">
					<h3><a href="<?php echo $this->baseurl("/gallery") ?>">&lt;&lt; <?php echo $this->__('Back to Gallery Home');?></a></h3>
					<?php echo App::__obj(appgalleryController::G_PREFIX . "{$currentgallery}")->setCategoryId($catdata['id'])->RenderHTML()?>
					<br class="clearboth" />
				</div>
			<?php else:?>
				<ul class="gallery-cat glitter">
				<?php foreach($categories['data'] as $category): ?>
					<li>
							<div class="image-thumb box">
								<a href="<?php echo $this->baseurl("/gallery-by-cat/{$category['id']}/" . App::Helper('Utility')->text2Normalize($category['title'])); ?>"><?php echo App::Helper('Html')->imgTag($this->baseUrl("/uploads/filemanager/{$category['image']}"),null,Array("alt"=>$category['title'])); ?></a>
							</div>
							<div class="title"><?php echo $category['title']; ?></div>
					</li>
				<?php endforeach;?>
				</ul>
			<?php endif;?>
			<br class="clearboth" />
		</div>
	</div>
</div>